<template>
	<view class="nodata" v-if="show">
		<view class="img"></view>
		<view class="text">{{text}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: false
			},
			text: {
				type: String,
				default: '亲，目前没有数据哦'
			}
		},
		data() {
			return {}
		},
		methods: {

		}
	}
</script>

<style>
	.nodata {
		width: 100%;
		height: 100%;
		min-height: 50vh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: transparent;
	}

	.nodata .img {
		width: 50vw;
		height: 41vw;
		margin-bottom: 10rpx;
		background: url(/static/mine/no_data.png) no-repeat center center;
		background-size: 100% auto;
	}

	.nodata .text {
		font-size: 30rpx;
		color: #999;
	}
</style>
